<!DOCTYPE html>
<html><head>
	    <meta charset="utf-8">
    <title>霍克行业交易系统</title>

    <meta name="description" content="Dashboard">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <!--Basic Styles-->
    <link href="__ADMIN__/style/bootstrap.css" rel="stylesheet">
    <link href="__ADMIN__/style/font-awesome.css" rel="stylesheet">
    <link href="__ADMIN__/style/weather-icons.css" rel="stylesheet">

    <!--Beyond styles-->
    <link id="beyond-link" href="__ADMIN__/style/beyond.css" rel="stylesheet" type="text/css">
    <link href="__ADMIN__/style/demo.css" rel="stylesheet">
    <link href="__ADMIN__/style/typicons.css" rel="stylesheet">
    <link href="__ADMIN__/style/animate.css" rel="stylesheet">
    
</head>
<body>
	<!-- 头部 -->
	{include file="public/top" /} 
	<!-- /头部 -->
	
	<div class="main-container container-fluid">
		<div class="page-container">
			<!-- Page Sidebar -->
           {include file="public/left" /} 
            <!-- /Page Sidebar -->
            <!-- Page Content -->
            <div class="page-content">
                <!-- Page Breadcrumb -->
                <div class="page-breadcrumbs">
                    <ul class="breadcrumb">
                                        <li>
                        <a href="#">系统</a>
                    </li>
                                        <li class="active">产品管理</li>
                                        </ul>
                </div>
                <!-- /Page Breadcrumb -->

                <!-- Page Body -->
                <div class="page-body">
                    
<button type="button" tooltip="添加分类" class="btn btn-sm btn-azure btn-addon" onClick="javascript:window.location.href = '{:url('add')}'"> <i class="fa fa-plus"></i> 添加
</button>
<div class="row">
    <div class="col-lg-12 col-sm-12 col-xs-12">
        <div class="widget">
            <div class="widget-body">
                <div class="flip-scroll">
                    <form action="" method="post">
                        <table class="table table-bordered table-hover">
                            <thead class="">
                                <tr>
                                    <th class="text-center" width="10%">ID</th>
                                    <th class="text-center">名称</th>
                                    <th class="text-center">缩略图</th>
                                    <th class="text-center">二维码</th>
                                     <th class="text-center">联系人</th>
                                    <th class="text-center">微信号</th>
                                    <th class="text-center">QQ</th>
                                    <th class="text-center">手机号</th>
                                    <th class="text-center">一件代发</th>
                                    <th class="text-center">首页推荐</th>
                                    <th class="text-center">分类置顶</th>
                                    <th class="text-center">所属分类</th>
                                    <th class="text-center" width="20%">操作</th>
                                </tr>
                            </thead>
                            <tbody>
                                    {volist name="products" id="art"}
                                    <tr>
                                        <td align="center">{$art.id}</td>
                                        <td><?php echo mb_substr($art['name'], 0,9,'utf-8'); if(strlen($art['name'])>9){echo '...';}?></td>
                                        <td align="center">
                                            {if condition="$art['thumb'] neq ''"}
                                            <img src="{$art.thumb}" height="30">
                                            {else /}
                                            暂无缩略图
                                            {/if}
                                        </td>
                                         <td align="center">
                                            {if condition="$art['qrcode'] neq ''"}
                                            <img src="{$art.qrcode}" height="50" width="50">
                                            {else /}
                                            暂无二维码
                                            {/if}
                                        </td>
                                        <td align="center">{$art.author}</td>
                                        <td align="center">{$art.weixin}</td>
                                         <td align="center">{$art.qq}</td>
                                          <td align="center">{$art.mobile}</td>
                                        <td align="center">{if condition="$art['rec'] eq 0"}不支持{else /}支持一件代发{/if}</td>
                                         <td align="center">{if condition="$art['zan'] eq 0"}不推荐{elseif condition="$art['zan'] eq 1" /}<span style="background: red;color:#FFF;">最火项目</span>{elseif condition="$art['zan'] eq 2" /}<span style="background: green;color:#FFF;">精选项目</span>{elseif condition="$art['zan'] eq 3" /}<span style="background: orange;color:#FFF;">人气项目</span>{elseif condition="$art['zan'] eq 4" /}<span style="background: blue;color:#FFF;">优质项目</span>{/if}</td>
                                          <td align="center">{if condition="$art['promote'] eq 0"}不置顶{else /}置顶{/if}</td>
                                        <td align="center">{$art.catename}</td>
                                        <td align="center">
                                            <a href="{:url('edit',array('id'=>$art['id']))}" class="btn btn-primary btn-sm shiny">
                                                <i class="fa fa-edit"></i> 编辑
                                            </a>
                                            <a href="#" onClick="warning('确实要删除吗', '{:url('del',array('id'=>$art['id']))}')" class="btn btn-danger btn-sm shiny">
                                                <i class="fa fa-trash-o"></i> 删除
                                            </a>
                                        </td>
                                    </tr>
                                    {/volist}
                            </tbody>
                        </table>
                    </form>
                </div>
                <div style="padding-top:10px;">
                    {$products->render()}
                </div>
                <div>
                	                </div>
            </div>
        </div>
    </div>
</div>

                </div>
                <!-- /Page Body -->
            </div>
            <!-- /Page Content -->
		</div>	
	</div>

	    <!--Basic Scripts-->
    <script src="__ADMIN__/style/jquery_002.js"></script>
    <script src="__ADMIN__/style/bootstrap.js"></script>
    <script src="__ADMIN__/style/jquery.js"></script>
    <!--Beyond Scripts-->
    <script src="__ADMIN__/style/beyond.js"></script>
    


</body></html>